<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

function runTest() {
    var id = window.requestAnimationFrame(function () {});
    var results = document.getElementById("results");

    if (id > 0)
        results.innerText = "PASSED: Callback id was > 0";
    else
        results.innerText = "FAILED: Callback id was <= 0";

    if (window.testRunner)
        testRunner.notifyDone();
}

window.addEventListener("load", runTest, false);
</script>
<div id="results"></div>
